package com.baizhi.cmfz.service.impl;

import com.baizhi.cmfz.annotation.AddCacheAnnotation;
import com.baizhi.cmfz.dao.AlbumDao;
import com.baizhi.cmfz.entity.Album;
import com.baizhi.cmfz.service.AlbumService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class AlbumServiceImpl implements AlbumService {
	@Resource
	private AlbumDao albumDao;

	@Override
	@AddCacheAnnotation
	public List<Album> selectAlbum(int limit) {
		return albumDao.selectAlbum(limit);
	}

	@Override
	public Album selectById(int albumId) {
		return albumDao.selectById(albumId);
	}
}
